package com.yq.cp.entity.basics.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yq.cp.entity.basics.OrganizationalStructure;
import lombok.Data;

import java.util.Date;

@Data
public class UserToStructureModel extends OrganizationalStructure {

    private String username;
    @TableField(value = "password", select = false)
    private String password;

    private String phone;
    //姓名
    private String nickname;

    private String headPortrait;

    //邮箱
    private String mailbox;

    /** 10-总平台超级管理员,20-商户管理员,30-用户*/
    private Integer type;

    private String openId;


    private String wechatName;
    private String wechatHeadPortrait;
    /**
     * 登录时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date loginTime;

    /**状态:0-正常,1-停用*/
    private Integer state;

    @TableField(exist = false)
    private Long companyId;
    @TableField(exist = false)
    private String companyName;

    private String code;

    @TableField(exist = false)
    private Long roleId;

    /**
     * 自我介绍
     * */
    @TableField(exist = false)
    private String introduce;
    /**
     * 地区名称
     * */
    @TableField(exist = false)
    private String regionName;

    /**
     * 电子签名
     */
    private String electronicSignature;
}
